package com.auto.signup.weixin.exception;

/**
 * 绑定异常
 * 
 * @author RandyJie
 * @version 2016-08-10
 * 
 */
public class BindAccountException extends Exception {

	public final static int binded = 21;// 已经绑定
	public final static int used = 22;// 手机已经使用
	public final static int other = 29;// 其他异常
	public final static int interval = 23;// 间隔过短

	/**
	 * 
	 */
	private static final long serialVersionUID = -4537563653027854282L;

	private int code;

	public BindAccountException() {
		super();
	}

	public BindAccountException(String message) {
		super(message);
		this.code = other;
	}

	public BindAccountException(int code, String message) {
		super(message);
		this.code = code;
	}

	public int getCode() {
		return code;
	}

}
